package com.koko.feign;

import com.koko.config.FeignClientConfig;
import com.koko.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "user-service", url = "http://localhost:8081", configuration = FeignClientConfig.class)
public interface UserFeignService {

    // TODO 删除发行商时处理用户服务中有关发行商的信息
    @DeleteMapping("/user/bypublisher")
    Result<String> deleteUserByPublisherIds(@RequestBody List<Long> ids);

    @DeleteMapping("/user/bygame")
    Result<String> deleteUserByGameIds(@RequestBody List<Long> ids);
}
